package com.lagou.service.Impl;

import com.lagou.DAO.ArticleDao;
import com.lagou.domain.Article;
import com.lagou.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleServiceImpl  implements ArticleService {


//    Service层需注入Dao对象，进行解耦
    @Autowired
    private ArticleDao articleDao;

    public void add(Article article) {
        articleDao.add(article);
    }


}
